package swing;

import model.Entity;
import model.Model;

import javax.swing.*;

/**
 * Created by nuno-rafael-figueiredo on 17-03-2014.
 */
public class ModelPanel extends JTabbedPane {
    @SuppressWarnings("unchecked")
    public ModelPanel(Model model) {
        for (Entity entity : model.getEntities())
            add(entity.getName(), new EntityPanel(entity));
    }
}
